#抛出异常raise
try:
    raise TypeError("抛出异常，类型错误")
except Exception as e:
    print(e)